/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package speedymarket_fusion;

import com.j256.ormlite.field.DatabaseField;
import com.j256.ormlite.table.DatabaseTable;

/**
 *
 * @author tordeepweb
 */

@DatabaseTable(tableName = "article")
public class Article {

public static final String CODE_CATEGORIE_FIELD_NAME = "code_categorie";
public static final String CODE_TVA_FIELD_NAME = "code_tva";
public static final String CODE_MARQUE_FIELD_NAME = "code_marque";
public static final String CODE_IMAGE_FIELD_NAME = "code_image";   

@DatabaseField(id = true)
    private int code_article;
@DatabaseField
    private String libelle_article;
@DatabaseField
    private String description_courte_article;
@DatabaseField
    private String description_longue;
@DatabaseField
    private Double prix_ht_article;
@DatabaseField
    private int quantite_article_en_stock;
@DatabaseField
    private Boolean visibilite_article;
@DatabaseField(foreign=true, columnName = CODE_CATEGORIE_FIELD_NAME)
    private Categorie code_categorie;
@DatabaseField(foreign=true, columnName = CODE_TVA_FIELD_NAME)
    private Type_TVA code_tva;
@DatabaseField(foreign=true, columnName = CODE_MARQUE_FIELD_NAME)
    private Marque code_marque;
@DatabaseField(foreign=true, columnName = CODE_IMAGE_FIELD_NAME)
    private Image code_image;

    public Article() {
    }

    public Article(int un_code_article, String un_libelle_article, String une_description_courte_article, String une_description_longue, Double un_prix_ht_article, int une_quantite_article_en_stock, Boolean une_visibilite_article, Categorie un_code_categorie, Type_TVA un_code_tva, Marque un_code_marque, Image un_code_image) {
        code_article = un_code_article;
        libelle_article = un_libelle_article;
        description_courte_article = une_description_courte_article;
        description_longue = une_description_longue;
        prix_ht_article = un_prix_ht_article;
        quantite_article_en_stock = une_quantite_article_en_stock;
        visibilite_article = une_visibilite_article;
        code_categorie = un_code_categorie;
        code_tva = un_code_tva;
        code_marque = un_code_marque;
        code_image = un_code_image;
    }

    public int getCode_article() {
        return code_article;
    }

    public void setCode_article(int un_code_article) {
        code_article = un_code_article;
    }

    public String getLibelle_article() {
        return libelle_article;
    }

    public void setLibelle_article(String un_libelle_article) {
        libelle_article = un_libelle_article;
    }

    public String getDescription_courte_article() {
        return description_courte_article;
    }

    public void setDescription_courte_article(String une_description_courte_article) {
        description_courte_article = une_description_courte_article;
    }

    public String getDescription_longue() {
        return description_longue;
    }

    public void setDescription_longue(String une_description_longue) {
        description_longue = une_description_longue;
    }

    public Double getPrix_ht_article() {
        return prix_ht_article;
    }

    public void setPrix_ht_article(Double un_prix_ht_article) {
        prix_ht_article = un_prix_ht_article;
    }

    public int getQuantite_article_en_stock() {
        return quantite_article_en_stock;
    }

    public void setQuantite_article_en_stock(int une_quantite_article_en_stock) {
        quantite_article_en_stock = une_quantite_article_en_stock;
    }

    public Boolean isVisibilite_article() {
        return visibilite_article;
    }

    public void setVisibilite_article(Boolean une_visibilite_article) {
        visibilite_article = une_visibilite_article;
    }

   public Categorie getCode_categorie() {
        return code_categorie;
    }

    public void setCode_categorie(Categorie un_code_categorie) {
        code_categorie = un_code_categorie;
    }

    public Type_TVA getCode_tva() {
        return code_tva;
    }

    public void setCode_tva(Type_TVA un_code_tva) {
        code_tva = un_code_tva;
    }

    public Marque getCode_marque() {
        return code_marque;
    }

    public void setCode_marque(Marque un_code_marque) {
        code_marque = un_code_marque;
    }

    public Image getCode_image() {
        return code_image;
    }

    public void setCode_image(Image un_code_image) {
        code_image = un_code_image;
    }

}
